//
//  CGSize+Ext.swift
//  TTCOM
//
//  Created by Toj on 4/20/23.
//

import Foundation

public extension CGSize {
    
    static var dv_size: CGSize {
        let bounds = UIScreen.main.bounds
        let width = Swift.min(bounds.width, bounds.height)
        let height = Swift.max(bounds.width, bounds.height)
        return CGSize(width: width, height: height)
    }
    
    static var sr_size: CGSize {
        return UIScreen.main.bounds.size
    }
    
    static var def_cipher: CGSize {
        return CGSize(width: .sr_width, height: .cg_cipher)
    }
}

public extension CGSize {
    
    var st_isZero: Bool {
        return st_iswZero || st_ishZero
    }
    var st_iswZero: Bool {
        return width == 0
    }
    var st_ishZero: Bool {
        return height == 0
    }
}
